package cn.joyfulmedia.mis.service.interfaces;

import cn.joyfulmedia.common.util.page.Pagination;
import cn.joyfulmedia.entity.ExamMisAccount;

import java.util.List;
import java.util.Set;

/**
 * @author <Auto generate>
 * @version 2015-04-15 13:44:42
 * @see
 */
public interface AccountService {
    /**
     * 保存
     */
    Integer saveAccount(ExamMisAccount entity) throws Exception;

    /**
     * 修改
     */
    Integer updateAccountById(ExamMisAccount entity) throws Exception;

    /**
     * 删除公司用户
     * @param id
     * @return
     * @throws Exception
     */
    Integer delUser(Integer id) throws Exception;

    /**
     * 根据ID查找
     *
     * @param id
     * @return
     * @throws Exception
     */
    ExamMisAccount selectAccountById(Long id) throws Exception;

    ExamMisAccount selectByUsername(String username);

    List<ExamMisAccount> listPage(ExamMisAccount account, Pagination pagination);

    /**
     * 获取用户权限标识
     *
     * @param username
     * @return
     */
    Set<String> findPermissions(String username);
}
